﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Model
{
    public class DbHouseGroup
    {
        #region DbHouseGroup
        /// <summary>
        /// 
        /// </summary>
        public DbHouseGroup()
        {
        }
        /// <summary>	 
        /// 
        /// </summary>
        public DbHouseGroup(Int32 houseGroupID)
        {
            this.houseGroupID = houseGroupID;

        }
        /// <summary>	 
        /// 
        /// </summary>		
        public DbHouseGroup(DataRow dr)
        {
            int.TryParse(Convert.ToString(dr["houseGroupID"]), out houseGroupID);
            int.TryParse(Convert.ToString(dr["houseRegionID"]), out houseRegionID);
            this.houseGroupName = Convert.ToString(dr["houseGroupName"]);
           
        }
        #endregion

        #region HouseGroupID int identity(1,1) not null,
        private Int32 houseGroupID;
        public Int32 HouseGroupID
        {
            get { return houseGroupID; }
            set { houseGroupID = value; }
        }
        #endregion
        
        #region HouseRegionID int,
        private Int32 houseRegionID;
        public Int32 HouseRegionID
        {
            get { return houseGroupID; }
            set { houseGroupID = value; }
        }
        #endregion
        
        #region HouseGroupName varchar(200)
        private string houseGroupName;
        public string HouseGroupName
        {
            get { return houseGroupName; }
            set { houseGroupName = value; }
        }
        #endregion
    }
}
